﻿namespace dotnet_notes.Entities
{
    /// <summary>
    /// 业务表基础类
    /// </summary>
    public class BusinessBase
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ID { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeleteTime { get; set; }

        /// <summary>
        /// 恢复时间
        /// </summary>
        public DateTime? RecoverTime { get; set; }

        /// <summary>
        /// 记录状态枚举
        /// </summary>
        public enum RecordStatusEnum
        {
            [Description("有效")] Active,
            [Description("锁定")] Locked,
            [Description("删除")] Deleted
        }

        /// <summary>
        /// 记录状态
        /// </summary>
        public RecordStatusEnum? RecordStatus { get; set; }
    }
}
